package com.spt.springbootzhsx.controller;

import com.spt.springbootzhsx.service.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value="/vip")
public class VipController {
    @Autowired
    private VipService vipService;

    @GetMapping(value="/isVip/{uid}")
    public String isVip(@PathVariable("uid") Integer uid){
        return vipService.getVipByUid_UseFul(uid);
    }
}
